<h3 class="page-title">
   	 站点管理
</h3>

<div class="table-custom" >
    <div class="portlet">
		<div class="portlet-title">
		<!-- 
			<button class="btn btn-success title-action" ng-click="mediaStopGrid.toAddMediaStop();" tabindex="0">
				<i class="fa fa-plus"></i> 新增站点
			</button> -->
            <a href="javascript:void(0);" class="title-operation search-expand">筛选</a>
            
			<div class="title-search-box">
				<input type="text" placeholder="请输入站点名称" class="search-field" ng-model="mediaStopGrid.query.stopName"
					style="width: 180px;" maxlength="100">
				<a class="fa fa-search" ng-click="mediaStopGrid.query();"></a>
			</div>
		</div>
		<div class="portlet-search-body" style="display: none">
				<form class="form-horizontal" role="form" style="margin: 2px;">
					 <div class="form-body">
                       	<div class="row" style="margin-bottom: 5px;">
                       		   <div class="col-md-2">
                                   <div class="input-icon">
                                      	<i class="icon-direction"></i>
                                       <select class="form-control" style="width: 200px;color: #b3b3b3;" ng-model="mediaStopGrid.query.county" ng-options="opt.value as opt.name for opt in options.AREA_COUNTY">
                                           <option value="" >行政区划</option>
									</select>
                                   </div>
                               </div>
                               <div class="col-md-2">
                                   <div class="input-icon">
                                      	<i class="icon-direction"></i>
									<input class="form-control" placeholder="所在街道" ng-model="mediaStopGrid.query.roadName">
                                   </div>
                               </div>
                               <div class="col-md-2">
                                   <div class="input-icon">
                                    	<i class="icon-direction"></i>
									<input class="form-control" placeholder="站点名称" ng-model="mediaStopGrid.query.stopName">
                                   </div>
                               </div>
                               <div class="col-md-2">
                                   <div class="input-icon">
                                      	<i class="icon-direction"></i>
									<input class="form-control" placeholder="行向" ng-model="mediaStopGrid.query.direction">
                                   </div>
                               </div>
                               
                                <div class="col-md-2">
                                   <div class="input-icon">
                                       <button class="btn btn-primary" ng-click="mediaStopGrid.query();">
										<i class="fa fa-search"></i> 搜索
									</button>
									<button class="btn btn-primary" ng-click="mediaStopGrid.reset();">
										<i class="fa fa-rotate-left"></i> 重置
									</button>
								</div>
                               </div>
                       	</div>
      					</div>
                	</form>
		</div>
		<div class="portlet-body" style="width: 100%;">
			<table ed-grid="mediaStopGrid" class="table table-striped table-bordered table-hover dataTable"
                  ed-url="media/stop/query.do" ed-model="stop" >
                <thead>
	                <tr>
						<th  ed-data="stopNo" style="width: 80px;">媒体序号</th>
	                    <th  ed-data="stopName" style="width: 200px;">站点名称</th>
	                    <th  ed-data="county | code:'AREA_COUNTY'" style="width: 100px;">区域</th>
	                    <th  ed-data="roadName" style="width: 100px;">街道</th>
	                    <th  ed-data="direction" style="width: 100px;">行向</th>
						<th ed-data="deputyStopName" style="width: 100px;">副站名</th>
						<th ed-data="mediaLevel" style="width: 100px;">媒体级别</th>
						<th ed-data="remark" style="width: 100px;">站点说明</th>
						<th ed-data="passLineCount" style="width: 80px;">经过线路数</th>
						<th ed-data="zpjdSituation" style="width: 100px;">站牌接电情况</th>
						<th ed-data="zgStyle" style="width: 100px;">站杆样式</th>
						<th ed-data="hctssType" style="width: 100px;">候车亭设施种类</th>
						<th ed-data="ldSituation" style="width: 100px;">亮灯情况</th>
						<th ed-data="zgEquipments" style="width: 80px;">站杆设施</th>
						<th ed-data="hctEquipments" style="width: 80px;">候车亭设施</th>
						<th ed-data="count12" style="width: 80px;">大板数</th>
						<th ed-data="count13" style="width: 80px;">小板数</th>
						<th ed-data="count14" style="width: 80px;">LED</th>
						<th ed-data="qrCode" style="width: 100px;">二维码</th>
	                    <th style="width: 200px;">操作</th>
	                </tr>
                </thead>
           	</table>
		</div>
	</div>
	
	<div ed-modal="stopMediaModal" data-options="title:'站点编辑',icon:'icon-direction',static:true,width:'900px'">
        <div class="form" style="overflow: auto;height: 500px;">
                    <form action="#" class="form-horizontal form-row-seperated w5c-form" w5c-form-validate novalidate name="stopMediaForm">
                        <div class="form-body">
                        	<div class="row">
                        		<div class="col-md-12">
	                        		<div class="form-group">
										<label class="col-md-2 control-label"><span class="required">*</span>媒体序号</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="stopNo" ng-model="mediaStop.stopNo" required>
										</div>
	                                	<label class="col-md-2 control-label"><span class="required">*</span>站点名称</label>
		                                <div class="col-md-4">
		                                    <input type="text" class="form-control" name="stopName" ng-model="mediaStop.stopName" required>
		                                </div>
	                            	</div>
                        		</div>
                        	</div>
                        	<div class="row">
                        		<div class="col-md-12">
	                        		<div class="form-group">
										<label class="col-md-2 control-label">行政区划</label>
										<div class="col-md-4">
											<select class="form-control" name="county" ng-model="mediaStop.county" ng-options="opt.value as opt.name for opt in options.AREA_COUNTY">
											</select>
										</div>
	                                	<label class="col-md-2 control-label">所在街道</label>
		                                <div class="col-md-4">
		                                	<input type="text" class="form-control" name="roadName" ng-model="mediaStop.roadName" >
		                                </div>
	                            	</div>
                        		</div>
                        	</div>

							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label class="col-md-2 control-label"><span class="required">*</span>行　　向</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="direction" ng-model="mediaStop.direction" required>
										</div>
										<label class="col-md-2 control-label">维护单位</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="maintenanceCompany" ng-model="mediaStop.maintenanceCompany">
										</div>
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label class="col-md-2 control-label">级　　别</label>
										<div class="col-md-4">
											<select class="form-control" name="mediaLevel" ng-model="mediaStop.mediaLevel"  ng-options="opt.value as opt.name for opt in options.RESOURCE_LEVEL">
											</select>
										</div>
										<label class="col-md-2 control-label">副&nbsp; 站&nbsp;名</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="deputyStopName" ng-model="mediaStop.deputyStopName">
										</div>
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label class="col-md-2 control-label">经行线路</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="passLines" ng-model="mediaStop.passLines">
										</div>
										<label class="col-md-2 control-label">经行线路数</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="passLineCount" ng-model="mediaStop.passLineCount">
										</div>
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label class="col-md-2 control-label">站杆样式</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="zgStyle" ng-model="mediaStop.zgStyle">
										</div>
										<label class="col-md-2 control-label">候车厅设施种类</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="hctssType" ng-model="mediaStop.hctssType">
										</div>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label class="col-md-2 control-label">亮灯情况</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="ldSituation" ng-model="mediaStop.ldSituation">
										</div>
										<label class="col-md-2 control-label">站牌接电情况</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="zpjdSituation" ng-model="mediaStop.zpjdSituation">
										</div>
									</div>
								</div>
							</div>

                        	
                        	<div class="row">
                        		<div class="col-md-12">
	                        		<div class="form-group">
	                                	<label class="col-md-2 control-label">经&nbsp; 纬&nbsp;度</label>
		                                <div class="col-md-4">
		                                	<p class="form-control-static">
		                                		【 {{mediaStop.longitude}}，{{mediaStop.latitude}} 】
		                                	<a href="javascript:void(0);" class="icon-pointer"  ng-click="stopMediaModal.setStopPoint();" title="定位"  style="color: #3b9c96;margin-left: 5px;font-size: 13px;">定位</a>
		                                	</p>
		                                </div>
	                            	</div>
                        		</div>
                        	</div>
                        	<div class="row">
                        		<div class="col-md-12">
	                        		<div class="form-group">
	                                	<label class="col-md-2 control-label">环境标签</label>
		                                <div class="col-md-10">
		                                	<select multiple="multiple" ng-model="mediaStop.stopMarks" class="multi-select" id="mediaStopMark_multiSelect">
			                                    <optgroup ng-repeat="mark in marks" label="{{mark.markName}}">
			                                        <option ng-repeat="child in mark.children" value="{{child.markId}}"> {{child.markName}}
			                                        </option>
			                                    </optgroup>
			                                </select>
		                                </div>
	                            	</div>
                        		</div>
                        	</div>
                        	<div class="row">
                        		<div class="col-md-12">
	                        		<div class="form-group">
	                                	<label class="col-md-2 control-label">照　　片</label>
		                                <div class="col-md-10">
		                                	<div ed-uploader data-options="text:' 文件上传',multiple: true,maxLength:4,accept:'image/*'" class="ng-uploader" ng-model="mediaStop.stopImgs" ed-upload-dir="stop"></div>
		                                	
		                                	<div class="mix-grid" style="display: block;" >
						                    	<div class="mix" style="display: inline-block;opacity: 1;padding-right: 5px;" ng-repeat="img in mediaStop.stopImgs">
						                    		<div class="mix-inner">
														<img class="img-responsive" ng-src="{{nginxPath+img.path}}" alt="" style="width:150px;height:120px">
														<div class="mix-details" style="height:50%;">
															<a class="mix-link" ng-click="stopMediaModal.removeStopImg(img);">
																<i class="fa fa-close" ></i>
															</a>
															<a class="mix-preview fancybox-button" ng-href="{{nginxPath+img.path}}" data-rel="fancybox-button">
																<i class="fa fa-search"></i>
															</a>
														</div>
													</div>
												</div>
											</div>
		                                </div>
	                            	</div>
                        		</div>
                        	</div>
                        </div>
                    </form>
            </div>
	</div>
    
    <div ed-modal="stopPointsModal" data-options="title:'站点定位',icon:'icon-direction',static:true,width:'900px',defaultButton:false">
        <div id="stopPointsModalMapDiv" style="overflow: auto;height: 500px;width: 100%;">
                    
        </div>
	</div>
	
	<div ed-modal="stopPointSetModal" data-options="title:'站点定位',icon:'icon-direction',static:true,width:'800px'">
        <div id="stopPointSetModalMapDiv" style="overflow: auto;height: 400px;width: 100%;">
                    
        </div>
	</div>
	
	<div ed-modal="stopMediaInfoModal" data-options="title:'站点信息',icon:'icon-direction',static:true,width:'900px',defaultButton:false">
        <div class="form" style="overflow: auto;height: 500px;">
             <form action="#" class="form-horizontal form-row-seperated w5c-form">
                        <div class="form-body">
                        	<div class="row">
                        		<div class="col-md-12">
	                        		<div class="form-group">
										<label class="col-md-2 control-label">媒体序号：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.stopNo}}</p>
										</div>
	                                	<label class="col-md-2 control-label">站点名称：</label>
		                                <div class="col-md-4">
		                                	<p class='form-control-static'>{{mediaStop.stopName}}</p>
		                                </div>
	                            	</div>
                        		</div>
                        	</div>
                        	<div class="row">
                        		<div class="col-md-12">
	                        		<div class="form-group">
										<label class="col-md-2 control-label">行政区划：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.county | code:'AREA_COUNTY'}}</p>
										</div>
	                                	<label class="col-md-2 control-label">所在街道：</label>
		                                <div class="col-md-4">
		                                	<p class='form-control-static'>{{mediaStop.roadName}}</p>
		                                </div>
	                            	</div>
                        		</div>
                        	</div>
							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label class="col-md-2 control-label">行　　向：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.direction}}</p>
										</div>
										<label class="col-md-2 control-label">维护单位：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.maintenanceCompany}}</p>
										</div>
									</div>
								</div>
							</div>


							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label class="col-md-2 control-label">级　　别：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.mediaLevel | code:'RESOURCE_LEVEL'}}</p>
										</div>
										<label class="col-md-2 control-label">副&nbsp; 站&nbsp;名：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.deputyStopName}}</p>
										</div>
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label class="col-md-2 control-label">经过线路数：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.passLineCount}}</p>
										</div>
										<label class="col-md-2 control-label">经过线路：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.passLines}}</p>
										</div>
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label class="col-md-2 control-label">站杆样式：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.zgStyle}}</p>
										</div>
										<label class="col-md-2 control-label" style="padding-left: 0px;">候车厅设施种类：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.hctssType}}</p>
										</div>
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label class="col-md-2 control-label">亮灯情况：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.ldSituation}}</p>
										</div>
										<label class="col-md-2 control-label">站牌接电情况：</label>
										<div class="col-md-4">
											<p class='form-control-static'>{{mediaStop.zpjdSituation}}</p>
										</div>
									</div>
								</div>
							</div>

                        	<div class="row">
                        		<div class="col-md-12">
	                        		<div class="form-group">
	                                	<label class="col-md-2 control-label">环境标签：</label>
		                                <div class="col-md-9">
		                                	<p class='form-control-static'>
		                                		<span ng-repeat="mark in mediaStop.marks" style="background-color: gray;padding: 2px 5px;color: white;margin-right: 10px;">{{mark.markName}}</span>
		                                	</p>
		                                </div>
	                            	</div>
                        		</div>
                        	</div>
                        	<div class="row">
                        		<div class="col-md-12">
	                        		<div class="form-group">
	                                	<label class="col-md-2 control-label">照　　片： </label>
		                                <div class="col-md-10">
		                                	<div class="mix-grid" style="display: inline;" ng-repeat="img in mediaStop.stopImgs">
						                    	<div class="mix" style="display: inline-block;opacity: 1;padding-right: 5px;">
						                    		<div class="mix-inner">
														<img class="img-responsive" ng-src="{{nginxPath+img.path}}" alt="" style="width:150px;height:120px">
														<div class="mix-details" style="height:50%;">
															<a class="mix-preview fancybox-button" style="position: static;display: inline-block;" ng-href="{{nginxPath+img.path}}" data-rel="fancybox-button">
																<i class="fa fa-search"></i>
															</a>
														</div>
													</div>
												</div>
											</div> 
		                                </div>
	                            	</div>
                        		</div>
                        	</div>
                        </div>
                    </form>
            </div>
	</div>
	
	<div ed-modal="hctEquipmentModal"  data-options="title: '设备信息', static:true,width:'1200px',
	 	icon: 'icon-direction',defaultButton : false">
		<div class="tabbable-custom">
			<div class="portlet" style="height: 500px">
				<div class="portlet-body" style="width: 100%">
					<table ed-grid="hctEquipmentGrid" class="table table-striped table-bordered table-hover dataTable"
						   ed-url="media/stop/equipment.do" ed-model="equipment1" style="width: 99.5%;margin-left: 2px;">
						<thead>
						<tr>
							<th ed-data="_index"></th>
							<th ed-data="equipmentCode">设备序号</th>
							<th ed-data="equipmentType">设备类型</th>
							<th ed-data="constructionYear">建设年限</th>
							<th ed-data="createCompany">建设公司</th>
							<th ed-data="removalCount">迁移次数</th>
							<th ed-data="footDepth">基脚深度</th>
							<th ed-data="powerSource">电源设施</th>
							<th ed-data="powerSourceApply">电源供应单位</th>
							<th ed-data="substation">变电设备</th>
							<th ed-data="lighting">照明设备</th>
							<th ed-data="internalStructure">内部结构</th>
							<th ed-data="structureRepairTime">结构维修时间</th>
							<th ed-data="electricUpdateTime">电器更新时间</th>
							<th ed-data="billboardRepairTime">广告牌维修时间</th>
							<th ed-data="structureRemainingYear" style="width: 50px;">结构剩余使用年限评估</th>
							<th ed-data="assessDept">评估单位</th>
							<th style="width: 126px;">
								<button class="btn btn-xs btn-success" ng-click="hctEquipmentGrid.addEquipment()"><i class="fa fa-plus"></i> 添加</button>
							</th>
						</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>
	</div>

	<div ed-modal="zgEquipmentModal"  data-options="title: '设备信息', static:true,width:'1200px',
	 	icon: 'icon-direction',defaultButton : false">
		<div class="tabbable-custom">
			<div class="portlet" style="height: 500px">
				<div class="portlet-body" style="width: 100%">
					<table ed-grid="zgEquipmentGrid" class="table table-striped table-bordered table-hover dataTable"
						   ed-url="media/stop/equipment.do" ed-model="equipment2" style="width: 99.5%;margin-left: 2px;">
						<thead>
						<tr>
							<th ed-data="_index"></th>
							<th ed-data="equipmentCode">设备序号</th>
							<th ed-data="constructionYear">建设年限</th>
							<th ed-data="createCompany">建设公司</th>
							<th ed-data="removalCount">迁移次数</th>
							<th ed-data="footDepth">基脚深度</th>
							<th ed-data="electricalEquipment">电器设备</th>
							<th ed-data="lighting">照明设备</th>
							<th ed-data="electricUpdateTime">电器更新时间</th>
							<th ed-data="billboardRepairTime">广告牌维修时间</th>
							<th ed-data="structureRemainingYear" style="width: 50px;">结构剩余使用年限评估</th>
							<th style="width: 126px;">
								<button class="btn btn-xs btn-success" ng-click="zgEquipmentGrid.addEquipment()"><i class="fa fa-plus"></i> 添加</button>
							</th>
						</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>
	</div>

	
	<div ed-modal="hctEquipmentAddModal" data-options="icon:'icon-direction',static:true,width:'900px'">
		<div class="form" style="overflow: auto;height: 480px;">
			<form action="#" class="form-horizontal form-row-seperated w5c-form" w5c-form-validate novalidate name="hctEquipmentAddForm">
				<div class="form-body">
					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label"><span class="required">*</span>设备序号</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="equipmentCode" ng-model="equipment.equipmentCode" required>
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label"><span class="required">*</span>设备类型</label>
								<div class="col-md-8">
									<select class="form-control" name="equipmentType" ng-model="equipment.equipmentType" style="color: #b3b3b3;" required>
										<option value="">-设备类型-</option>
										<option value="候车亭大板">候车亭大板</option>
										<option value="候车亭小板">候车亭小板</option>
										<option value="候车亭LED">候车亭LED</option>
									</select>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label"><span class="required">*</span>建设年限</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="constructionYear" ng-model="equipment.constructionYear" required>
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label"><span class="required">*</span>建设公司</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="createCompany" ng-model="equipment.createCompany" required>
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">迁移次数</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="removalCount" ng-model="equipment.removalCount">
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">基脚深度</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="footDepth" ng-model="equipment.footDepth">
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">电源设备</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="powerSource" ng-model="equipment.powerSource">
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">电源供应单位</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="powerSourceApply" ng-model="equipment.powerSourceApply">
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">变电设备</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="substation" ng-model="equipment.substation">
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">内部结构</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="lighting" ng-model="equipment.lighting">
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">结构维修时间</label>
								<div class="col-md-8">
									<input type="text" ed-time-picker class="form-control" name="structureRepairTime" ng-model="equipment.structureRepairTime">
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">电器更新时间</label>
								<div class="col-md-8">
									<input type="text" ed-time-picker class="form-control" name="electricUpdateTime" ng-model="equipment.electricUpdateTime">
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">广告牌维修时间</label>
								<div class="col-md-8">
									<input type="text" ed-time-picker class="form-control" name="billboardRepairTime" ng-model="equipment.billboardRepairTime">
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">结构剩余使用年限评估</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="structureRemainingYear" ng-model="equipment.structureRemainingYear">
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">评估单位</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="assessDept" ng-model="equipment.assessDept">
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">照明设备</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="lighting" ng-model="equipment.lighting">
								</div>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>

	<div ed-modal="zgEquipmentAddModal" data-options="icon:'icon-direction',static:true,width:'900px'">
		<div class="form" style="overflow: auto;height: 480px;">
			<form action="#" class="form-horizontal form-row-seperated w5c-form" w5c-form-validate novalidate name="zgEquipmentAddForm">
				<div class="form-body">
					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label"><span class="required">*</span>设备序号</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="equipmentCode" ng-model="equipment.equipmentCode" required>
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label"><span class="required">*</span>建设年限</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="constructionYear" ng-model="equipment.constructionYear" required>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label"><span class="required">*</span>建设公司</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="createCompany" ng-model="equipment.createCompany" required>
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">迁移次数</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="removalCount" ng-model="equipment.removalCount">
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">基脚深度</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="footDepth" ng-model="equipment.footDepth">
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">电器设备</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="electricalEquipment" ng-model="equipment.electricalEquipment">
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">照明设备</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="lighting" ng-model="equipment.lighting">
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">电器更新时间</label>
								<div class="col-md-8">
									<input type="text" ed-time-picker class="form-control" name="electricUpdateTime" ng-model="equipment.electricUpdateTime">
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">维修时间</label>
								<div class="col-md-8">
									<input type="text" ed-time-picker class="form-control" name="billboardRepairTime" ng-model="equipment.billboardRepairTime">
								</div>
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label class="col-md-4 control-label">结构剩余使用年限评估</label>
								<div class="col-md-8">
									<input type="text" class="form-control" name="structureRemainingYear" ng-model="equipment.structureRemainingYear">
								</div>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
	
	<div ed-modal="stopResourcesModal" data-options="title:'站点媒体资源',icon:'icon-direction',static:true,width:'900px',defaultButton:false">
	    <div style="padding: 5px;width: 100%;overflow: auto;height:500px;">
			<div class="portlet">
				<div class="portlet-body">
					<div ng-repeat="media in mediaTypes">

	                	<table class="table table-striped table-bordered table-hover dataTable" style="width: 100%;font-size: 9px;">
		                    <thead>
			                    <tr style="">
			                        <th style="text-align: center;width: 10%;font-weight: bold;">{{media.mediaName}}</th>
			                        <th style="text-align: center;font-weight: bold;">资源编号</th>
			                        <th style="text-align: center;font-weight: bold;">规格</th>
			                        <th style="text-align: center;font-weight: bold;">状态</th>
			                        <th style="text-align: center;font-weight: bold;" ng-repeat="item in media.items">{{item.itemName}}</th>
			                        <th style="text-align: center;font-weight: bold;width: 120px;">
										<button ng-show="mediaStop.status == '1'"  class="btn btn-success" ng-click="stopResourcesModal.toAdd(media);" style="padding: 0px 5px;float: right; margin-right: 30px;">
											<i class="fa fa-plus"></i> 新增
										</button>
									</th>
			                    </tr>
		                    </thead>
	                    	<tbody>
						         	<tr style="text-align: center;color: {{resource.status == '1' ? '':'lightgray'}}" role="row" ng-repeat="resource in mediaStop.resources  | filter : {mediaType:media.mediaId}">
			                            <td>{{$index + 1}}</td>
				                        <td>
				                        	<a ng-show="resource.resourceImg && resource.resourceImg != ''" class="mix-preview"  ng-href="{{nginxPath+resource.resourceImg}}" data-rel="fancybox-button">{{resource.resourceCode}}</a>
				                        	<span ng-show="!resource.resourceImg || resource.resourceImg == ''">{{resource.resourceCode}}</span>
				                        </td>
				                        <td>{{resource.model}}</td>
				                        <td>{{resource.status | code:'DATA_STATUS'}}</td>
				                         <td ng-repeat="item in media.items">
				                        	<span ng-if="item.itemType == 'CODE'">{{resource[item.itemId] | code:item.enumCode}}</span>
				                        	<span ng-if="item.itemType != 'CODE'">{{resource[item.itemId]}}</span>
				                        </td>
				                        <td>
				                        	<button class="btn btn-xs btn btn-edit" ng-if="resource.status == '1'" ng-click="stopResourcesModal.toEdit(resource, media);"><i class="fa fa-edit"></i> 编辑</button>
				                        	<button class="btn btn-xs btn btn-delete" ng-if="resource.status == '1'" ng-click="stopResourcesModal.remove(resource);"><i class="fa fa-trash-o"></i> 废除</button>
				                        	<button class="btn btn-xs btn btn-success" ng-if="resource.status != '1'" ng-click="stopResourcesModal.revert(resource);"><i class="fa fa-undo"></i> 启用</button>
				                        </td>
			                        </tr>
							</tbody> 
	                	</table>
	                	<hr/>
	                </div>
				</div>
			</div>
	    </div>
	</div>
	
	<div ed-modal="stopResourceEditModal" data-options="title:'站点媒体资源编辑',icon:'icon-direction',static:true,width:'450px'">
	    <div style="height: 400px;margin: 5px;overflow: auto;">
				<form action="#" class="form-horizontal form-row-seperated w5c-form" w5c-form-validate novalidate name="resourceForm">
			        		<div class="form-body">
	                        	<div class="row">
	                        		<div class="col-md-12">
		                        		<div class="form-group">
		                                	<label class="col-md-3 control-label"><span class="required">*</span>编号</label>
			                                <div class="col-md-8">
			                                    <input type="text" class="form-control" name="resourceCode" ng-model="stopResourceEditModal.resource.resourceCode" required>
			                                </div>
		                            	</div>
	                        		</div>
	                        	</div>
								<div class="row">
									<div class="col-md-12">
										<div class="form-group">
											<label class="col-md-3 control-label">所属设备</label>
											<div class="col-md-8">
												<select class="form-control" name="equipmentObj" ng-model="stopResourceEditModal.resource.equipmentId"
													ng-options="opt.value as opt.name for opt in stopEquipmentList">
												</select>
											</div>
										</div>
									</div>
								</div>
	                        	<div class="row">
	                        		<div class="col-md-12">
		                        		<div class="form-group">
		                                	<label class="col-md-3 control-label"><span class="required">*</span>规格</label>
			                                <div class="col-md-8">
			                                    <input type="text" class="form-control" name="model" ng-model="stopResourceEditModal.resource.model" required>
			                                </div>
		                            	</div>
	                        		</div>
	                        	</div>

	                        	<div class="row" ng-repeat="item in stopResourceEditModal.media.items">
	                        		<div class="col-md-12">
		                        		<div class="form-group">
		                                	<label class="col-md-3 control-label">{{item.itemName}}</label>
			                                <div class="col-md-8">
			                                	<input ng-if="item.itemType != 'CODE'" type="text" class="form-control" ng-model="stopResourceEditModal.resource[item.itemId]">
			                                	<select ng-if="item.itemType == 'CODE'" class="form-control" name="resourceLevel" ng-model="stopResourceEditModal.resource[item.itemId]"  ng-options="opt.value as opt.name for opt in options[item.enumCode]">
		                                		</select>
			                                </div>
		                            	</div>
	                        		</div>
	                        	</div>
	                        	<div class="row">
	                        		<div class="col-md-12">
		                        		<div class="form-group">
		                                	<label class="col-md-3 control-label">照片</label>
			                                <div class="col-md-9">
						                        <div ed-uploader data-options="text:' 文件上传',accept:'image/*'" class="ng-uploader" ng-model="stopResourceEditModal.resource.file" ed-upload-dir="stop_resource">
						                        </div>
						                        <div class="mix-grid" style="display: block;">
							                    	<div class="mix" style="display: inline-block;opacity: 1;padding-right: 5px;">
							                    		<div class="mix-inner">
															<img class="img-responsive" ng-src="{{stopResourceEditModal.resource.file.path ? (nginxPath + stopResourceEditModal.resource.file.path):' '}}" alt="请上传照片" style="width:150px;height:120px">
															<div class="mix-details" style="height:50%;" ng-if="stopResourceEditModal.resource.file.path">
																<a class="mix-preview fancybox-button"  style="position: static;display: inline-block;" ng-href="{{nginxPath+stopResourceEditModal.resource.file.path}}" data-rel="fancybox-button">
																	<i class="fa fa-search"></i>
																</a>
															</div>
														</div>
													</div>
												</div>
						                    </div>
		                            	</div>
	                        		</div>
	                        	</div>
	                        </div>
	            </form>	
	    </div>
	</div>
   
</div>